package cn.jxau.mapper;

import org.apache.ibatis.annotations.Param;

import cn.jxau.bean.po.User;
import cn.jxau.common.util.CommonMapper;

/**
 * 跟t_user表相关的额Mapper
 * @author licho
 *
 */
public interface UserMapper extends CommonMapper<User>{
	/**
	 * 判断是否有name=userName或者emali=email的用户，注意，是or不是and
	 * @param userName
	 * @param email
	 * @return
	 */
	 int queryUserExist(@Param("userName")String userName,@Param("email")String email);
	 
	 User getUserByNameOrEmail(@Param("login")String login,@Param("pwd")String pwd);
}
